#include <iostream>
#include <jsoncpp/json/writer.h>
#include <sstream>
#include <string>
#include <memory>
using namespace std;
int main()
{
  const char* name="小明";
  int age=19;
  float score[]={88.1,80,90.5};
  Json::Value val;
  val["姓名"]=name;
  val["年龄"]=age;
  val["成绩"][0]=score[0];
  val["成绩"][1]=score[1];
  val["成绩"][2]=score[2];
  Json::StreamWriterBuilder swb;
 unique_ptr<Json::StreamWriter> sw(swb.newStreamWriter());
 stringstream str;
 sw->write(val,&str);
 cout<<str.str()<<endl;
cout<<"你好"<<endl;
 return 0;
}
